Optimal. Leaf size=88 \[ \frac{\cos ^3(e+f x) \sqrt{a+b \sec ^2(e+f x)-b}}{3 f (a-b)}-\frac{(3 a-b) \cos (e+f x) \sqrt{a+b \sec ^2(e+f x)-b}}{3 f (a-b)^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.101122, antiderivative size = 88, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.12, Rules used = {3664, 453, 264} \[ \frac{\cos ^3(e+f x) \sqrt{a+b \sec ^2(e+f x)-b}}{3 f (a-b)}-\frac{(3 a-b) \cos (e+f x) \sqrt{a+b \sec ^2(e+f x)-b}}{3 f (a-b)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3664
Rule 453
Rule 264
Rubi steps
\begin{align*} \int \frac{\sin ^3(e+f x)}{\sqrt{a+b \tan ^2(e+f x)}} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{-1+x^2}{x^4 \sqrt{a-b+b x^2}} \, dx,x,\sec (e+f x)\right )}{f}\\ &=\frac{\cos ^3(e+f x) \sqrt{a-b+b \sec ^2(e+f x)}}{3 (a-b) f}+\frac{(3 a-b) \operatorname{Subst}\left (\int \frac{1}{x^2 \sqrt{a-b+b x^2}} \, dx,x,\sec (e+f x)\right )}{3 (a-b) f}\\ &=-\frac{(3 a-b) \cos (e+f x) \sqrt{a-b+b \sec ^2(e+f x)}}{3 (a-b)^2 f}+\frac{\cos ^3(e+f x) \sqrt{a-b+b \sec ^2(e+f x)}}{3 (a-b) f}\\ \end{align*}
Mathematica [A] time = 1.43294, size = 74, normalized size = 0.84 \[ \frac{\cos (e+f x) ((a-b) \cos (2 (e+f x))-5 a+b) \sqrt{\sec ^2(e+f x) ((a-b) \cos (2 (e+f x))+a+b)}}{6 \sqrt{2} f (a-b)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.221, size = 104, normalized size = 1.2 \begin{align*}{\frac{ \left ( a \left ( \cos \left ( fx+e \right ) \right ) ^{2}- \left ( \cos \left ( fx+e \right ) \right ) ^{2}b+b \right ) \left ( a \left ( \cos \left ( fx+e \right ) \right ) ^{2}- \left ( \cos \left ( fx+e \right ) \right ) ^{2}b-3\,a+b \right ) }{3\,f \left ( a-b \right ) ^{2}\cos \left ( fx+e \right ) }{\frac{1}{\sqrt{{\frac{a \left ( \cos \left ( fx+e \right ) \right ) ^{2}- \left ( \cos \left ( fx+e \right ) \right ) ^{2}b+b}{ \left ( \cos \left ( fx+e \right ) \right ) ^{2}}}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.02708, size = 143, normalized size = 1.62 \begin{align*} -\frac{\frac{3 \, \sqrt{a - b + \frac{b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right )}{a - b} - \frac{{\left (a - b + \frac{b}{\cos \left (f x + e\right )^{2}}\right )}^{\frac{3}{2}} \cos \left (f x + e\right )^{3} - 3 \, \sqrt{a - b + \frac{b}{\cos \left (f x + e\right )^{2}}} b \cos \left (f x + e\right )}{a^{2} - 2 \, a b + b^{2}}}{3 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.85646, size = 174, normalized size = 1.98 \begin{align*} \frac{{\left ({\left (a - b\right )} \cos \left (f x + e\right )^{3} -{\left (3 \, a - b\right )} \cos \left (f x + e\right )\right )} \sqrt{\frac{{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}}}{3 \,{\left (a^{2} - 2 \, a b + b^{2}\right )} f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sin \left (f x + e\right )^{3}}{\sqrt{b \tan \left (f x + e\right )^{2} + a}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]